import Toast from './toast.vue'

const obj = {};
obj.install = function (Vue) {
    const constr = Vue.extend(Toast);
    const toast = new constr();
    toast.$mount(document.createElement('div'));
    document.body.appendChild(toast.$el);
    Vue.prototype.$toast = toast
}
export default obj
